package com.lc.afbx.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebView;

import com.lc.afbx.BaseApplication;
import com.lc.afbx.R;
import com.zcx.helper.activity.AppV4Fragment;

/**
 * Created by Administrator on 2016/9/18.
 */
public class FragmentBusinessJoinDetailIntruduce extends AppV4Fragment {


    private WebView web;

    public static Fragment newInstance(String webUrl) {

        FragmentBusinessJoinDetailIntruduce fragmentBusinessJoinDetailIntruduce = new FragmentBusinessJoinDetailIntruduce();

        Bundle bundle = new Bundle();

        bundle.putString("lalala", webUrl);

        fragmentBusinessJoinDetailIntruduce.setArguments(bundle);

        return fragmentBusinessJoinDetailIntruduce;
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

        View view = inflater.inflate(R.layout.fragment_businessjoin_detail_intruduce, null);

        BaseApplication.ScaleScreenHelper.loadView((ViewGroup) view);

        web = (WebView) view.findViewById(R.id.web);

        web.loadUrl(getArguments().getString("lalala"));

        return view;
    }
}
